const app = getApp(); //引入导航

var util = require('../../utils/common.js'); //引入公共JS


import { myKaiShou } from 'myKaiShou.model.js';
var mykaishou = new myKaiShou();
Page({
  data: {
    showIcon: true //显示返回键以及首页

  },
  onLoad: function () {
    this._onLoad();
  },
  _onLoad: function () {
    mykaishou.getKaiShouRow(res => {
      this.setData({
        'List': res
      });
    });
  },
  Tiaozhuan: function (e) {
    var aid = e.target.dataset.aid;
    tt.redirectTo({
      url: '../reserveCount/reserveCount?id=' + aid
    });
  },
  //分享
  onShareAppMessage: function () {
    util.sharePage();
  }
});